﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Domain.Entities;
using Domain.Service;
using Infrastructure.Order;
using Presentation.Core;
namespace DDD从零起步.Controllers
{
    public class ProductController : BaseController
    {
        IProductRepository iProductRepository;
        public ProductController()
        {
            iProductRepository = new ProductRepository(new backgroundEntities());
        }
        //
        // GET: /Product/

        public ActionResult Index()
        {
            return View(iProductRepository.GetProduct());
        }

    }
}
